/** * @description : 经营信息-页签组件 * @descriptionDetail : 经营信息-页签组件 * @copyright : 浙江烟草 * @author : dw * @create : 2022-12-05 10:28:56 */
<template>
  <view>
    <view class="retail">
      <fsection :title="title.basemsg" class="pl-16"></fsection>
      <u-gap :height="$theme.cm_section_top_gap_height" :bg-color="$theme.cm_gap_color"></u-gap>
    </view>
    <view class="rdcontent">
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="6">
          <view class="msg-title">
            是否自营店
          </view>
          <view class="msg-context">
            {{ $u.dic.getDicNameByKeyCode($u.dic.DIC_KEYS.S_SYS_YES_NO,basemsg.isSelfOrg) || "/" }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            是否连锁经营
          </view>
          <view class="msg-context">
            {{ $u.dic.getDicNameByKeyCode($u.dic.DIC_KEYS.S_SYS_YES_NO,baseInfo.isChain) || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="6">
          <view class="msg-title">
            连锁经营
          </view>
          <view class="msg-context">
            {{ $u.dic.getDicNameByKeyCode($u.dic.DIC_KEYS.L_CHAIN_TYPE,baseInfo.chainType) || "/" }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            商圈类别
          </view>
          <view class="msg-context">
            {{ $u.dic.getDicNameByKeyCode($u.dic.DIC_KEYS.L_BUSI_TYPE,baseInfo.busiType) || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row
        gutter="16" justify="space-between" align="top"
        class="divided-line"
      >
        <u-col span="6">
          <view class="msg-title">
            是否暂停订货
          </view>
          <view class="msg-context">
            {{ $u.dic.getDicNameByKeyCode($u.dic.DIC_KEYS.S_SYS_YES_NO,basemsg.isSuspendOrder) || "/" }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            隐形连锁店
          </view>
          <view class="msg-context">
            {{ $u.dic.getDicNameByKeyCode($u.dic.DIC_KEYS.L_HIDDEN_CHAIN,basemsg.hiddenChain) || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row
        gutter="16" justify="space-between" align="top"
        class="divided-line"
      >
        <u-col span="6">
          <view class="msg-title">
            暂停订货开始时间
          </view>
          <view class="msg-context">
            {{ basemsg.suspendBeginDate || "/" }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            暂停订货结束时间
          </view>
          <view class="msg-context">
            {{ basemsg.suspendEndDate || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="6">
          <view class="msg-title">
            第一次订货时间
          </view>
          <view class="msg-context">
            {{ basemsg.firstOrderTime || "/" }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            最近一次订货时间
          </view>
          <view class="msg-context">
            {{ basemsg.lastOrderTime || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="6">
          <view class="msg-title">
            连续未进货时间
          </view>
          <view class="msg-context">
            {{ baseInfo.unOrderTimeName || "/" }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            信用等级
          </view>
          <view class="msg-context">
            {{ baseInfo.creditLevel || "/" }}
          </view>
        </u-col>
      </u-row>
       <u-row gutter="16" align="top" class="divided-line">
        <u-col span="6">
          <view class="msg-title">
            信用分值
          </view>
          <view class="msg-context">
            {{ baseInfo.creditScore || "/" }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            信用挡位
          </view>
          <view class="msg-context">
            {{ baseInfo.creditLevelItemName || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="6">
          <view class="msg-title">
            联系电话
          </view>
          <view class="msg-context">
            {{ baseInfo.retailTel || '/' }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            备用电话
          </view>
          <view class="msg-context">
            {{ baseInfo.retailTelBack || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="6">
          <view class="msg-title">
            零售业态
          </view>
          <view class="msg-context">
            <!-- {{ $u.dic.getDicNameByKeyCode($u.dic.DIC_KEYS.BIZ_FORMAT,baseInfo.bizFormat) || "/" }} -->
            {{ baseInfo.bizFormatName || '/' }}
          </view>
        </u-col>
        <u-col span="6">
          <view class="msg-title">
            业态细分
          </view>
          <view class="msg-context">
            {{ baseInfo.bizFormatDetailName || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="12">
          <view class="msg-title">
            开户银行（账号）
          </view>
          <view class="msg-context">
            {{ basemsg.bankAccount || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="12">
          <view class="msg-title">
            持卡人
          </view>
          <view class="msg-context">
            {{ basemsg.bankcardOwner || "/" }}
          </view>
        </u-col>
      </u-row>
      <u-row gutter="16" align="top" class="divided-line">
        <u-col span="12">
          <view class="msg-title">
            持卡人身份证号
          </view>
          <view class="msg-context">
            {{ basemsg.bankIdCard || "/" }}
          </view>
        </u-col>
      </u-row>
    </view>
  </view>
</template>

<script>
import fsection from '@/components/form-section.vue';
// function sh() {
//   console.log('shsh');
// }
// sh();
export default {
  components: {
    fsection,
  },
  props: {
    manageInfo: {
      type: Function,
      default: () => {},
    },
  },
  data() {
    return {
      title: {
        basemsg: '经营信息',
      },
      basemsg: {},
      baseInfo: {},
    };
  },
  mounted() {
    this.manageInfo().then((res) => {
      if (res.success) {
        Object.keys(res.bean).forEach((key) => {
          console.log('key:', key);
          if (key == 'licenseInfoExternal') {
            this.basemsg = res.bean.licenseInfoExternal;
          } else if (key == 'licenseInfoPre') {
            this.baseInfo = res.bean.licenseInfoPre;
          }
        });
      }
    });
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
	@import './retailItem.scss';
</style>
